body {
    background-image: url("https://s1.hdslb.com/bfs/static/stone-free/dyn-home/assets/bg.png@1c.avif");
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    /* 隐藏横向滚动条 */
}

.main-container {
    width: 80%;
    max-width: 80%;
    box-sizing: border-box;
    /* 确保内边距和边框不影响宽度 */
}

.nav {
    height: 60px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 10px;
    /* 减少导航栏左右内边距，避免溢出 */
    box-sizing: border-box;
}

.search-box input {
    width: 100%;
    max-width: 400px;
    height: 36px;
    box-sizing: border-box;
}

.login-box {
    height: auto;
}

.dynamic {
    margin-bottom: 20px;
}

.dynamic-header img {
    width: 32px;
    height: 32px;
}

.dynamic-content img {
    width: 100%;
    height: auto;
}

.dynamic-footer img {
    width: 14px;
    height: 14px;
}

.community-center {
    height: auto;
}

.login-tip {
    height: auto;
}

.footer {
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .main-container {
        width: 95%;
    }

    .main {
        flex-direction: column;
    }

    .left-section,
    .center-section,
    .right-section {
        width: 100%;
    }

    .nav ul {
        display: none;
    }

    .search-box input {
        max-width: 200px;
    }

    .nav-right a {
        margin-left: 10px;
        /* 减少小屏幕下导航栏右侧链接的间距 */
    }
}

footer {
    margin-top: 100px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    color: #727272;
}

footer span {
    margin-right: 10px;
}

footer a {
    margin-right: 10px;
    color: #727272;
}

footer a:hover {
    color: #00aeec;
}

footer div:last-child {
    width: 50%;
    margin: 30px auto;
}

footer img {
    width: 15%;
    margin-right: 20px;
}